{% extends app.request.isXmlHttpRequest ? "PopshouseSiteBundle::blank.html.twig" : "PopshouseSiteBundle::layout.html.twig" %}

{% block script %}
<script type="text/javascript">
$(document).ready(function() {
admin('entry','inline','{{ path('guestbook_delete_dummy', {'_locale' : app.session.locale }) }}');
});
</script>
{% endblock %}
{% block content %}
<div class="content">
    <div class="scrollbox" style="height:580px;">
		<div class="guestbook">
			<h1>Gastenboek</h1>
			{% if app.session.hasFlash('notice') %}
		        <div class="flash-notice">
		            <p>{{ app.session.flash('notice') }}</p>
		        </div>
		    {% endif %}
			    
			<p><a href="{{ path('guestbook_sign', {'_locale':app.session.locale}) }}">{{ "teken" | trans({},"guestbook") | raw }}.</a></p>
			
			<ol class="entries entrys">
			
			{% for entry in entries %}
			
			 {% include "PopshouseSiteBundle:Guestbook:entry.html.twig" with {'loop':loop, 'last': loop.last} %}
			   
			{% endfor %}
		
		</ol>
		
		</div>
	</div>
{% include "PopshouseSiteBundle::arrows.html.twig" %}
</div>
{% endblock %}